/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg8puzzle;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author LENON
 */
public class Node {
    private int estado[][] = new int[3][3];
    private int heuristica;
    private int g;
    private int f;
    public List<Node> caminho = new ArrayList<Node>();

    public Node() {
        heuristica = 0;
        g = 0;
        f = 0;
    }

    public int getHeuristica() {
        return heuristica;
    }

    public int getG() {
        return g;
    }

    public int getF() {
        return f;
    }

    public Node(int[][] e, int f) {
        this.estado = e;
        this.f = f;
        g = 0;
        heuristica = 0;
    }

    public Node(int[][] e, int heuristica, int g,List<Node> caminho) {
        this.heuristica = heuristica;
        this.g = g;
        this.f = g + heuristica;
        this.estado = e;
        this.caminho = new ArrayList<Node>(caminho);
        

    }
 public Node(int[][] e, int heuristica, int g) {
        this.heuristica = heuristica;
        this.g = g;
        this.f = g + heuristica;
        this.estado = e;
        
    }
    public int[][] getEstado() {
        return estado;
    }
    
    
    
}
